package modele;

import java.util.Vector;


public class ModeleMethode 
{
	private String visib;
	private String nom;
	private String typeRetour;
	// liste des argument (on n'indiquera que le type des arguments)
	private Vector<String> listeArgs;  
	
	public ModeleMethode(){};
	
	public ModeleMethode(Visibilite v,String n, Types tr, Vector<Types> la) 
	{
		this.setVisib(v.toString());
		this.setNom(n);
		this.setTypeRetour(tr.toString());
		vectorTypeToString(la);
	}
	
	public ModeleMethode(String visib,String n, String tr, Vector<String> la) 
	{
		this.setVisib(visib);
		this.setNom(n);
		this.setTypeRetour(tr);
		this.listeArgs = la;
	}

	public String getVisib() {
		return visib;
	}

	public void setVisib(String string) {
		this.visib = string;
	}

	public void setNom(String nom) 
	{
		this.nom = nom;
	}

	public String getNom() {
		return nom;
	}

	public void setTypeRetour(String typeRetour) {
		this.typeRetour = typeRetour;
	}

	public String getTypeRetour() {
		return typeRetour;
	}

	public void setListeArgs(Vector<String> listeArgs) {
		this.listeArgs = listeArgs;
	}

	public Vector<String> getListeArgs() {
		return listeArgs;
	}
	
	public void vectorTypeToString(Vector<Types> v)
	{	
		this.listeArgs = new Vector<String>();
		
		for(int i = 0; i<v.size(); i++)
		{
			this.listeArgs.add(v.get(i).toString());
		}
		
	}
	
	

}
